<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<script type="text/javascript">
	/**
	 * Script on load header
	 */
	var Header = null;
	$(window).load(function() {
		Header = new HeaderPage();
		Header.load();
	});

	function HeaderPage() {
		var _this = this;
		/* pre config */
		this.init = function(settings) {

		};

		/* load function */
		this.load = function() {
			// set spinner if need
			// load functions:
			this.getLogedInContent();
		};

		this.getLogedInContent = function() {
			var settings = {
				"body" : $('.right'),
				"url" : "getUserLogedIn",
				"responseFunc" : _this.responseLoggedInContent

			};
			CallManager(settings);
		};

		this.responseLoggedInContent = function(data) {
			if (data == null || data == undefined)
				return /* Handle error*/;
			$("#userNameId").html(data.name);
		};

	}
</script>

<div class="ui-layout-north">
	<div class="header">
		<!-- 
	  **
	  * Top side
	  *
	  -->
		<div class="top-menu"></div>

		<!-- 
	  **
	  * Right side
	  *
	  -->
		<div class="right">
			<table style="padding-right:15px;">
				<tr>
					<td><label id="userNameId"></label></td>
					<td><label id="userNameId"></label></td>
					<td><a title="Logout" href="j_spring_security_logout">Logout</a></td>
				</tr>
			</table>

		</div>

		<!-- 
	  **
	  * Left side
	  *
	  -->
		<div class="left"></div>
	</div>
</div>

